package com.cloud.pole.weixin.model.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author 
 */
@Table(name="wx_pay_join")
public class WxPayJoin implements Serializable {
    /**
     * 状态（0：无效 1：有效）
     */
    public static final int JOIN_STATUS_OK = 1;
    public static final int JOIN_STATUS_INVALID = 0;
    
    @Id
    @Column(name="pay_join_id")
    private Integer payJoinId;

    /**
     * 内部定义应用id
     */
    @Column(name="wx_app_id")
    private Integer wxAppId;

    /**
     * 通知地址
     */
    @Column(name="notify_url")
    private String notifyUrl;

    /**
     * 接入产品名称
     */
    @Column(name="join_name")
    private String joinName;

    /**
     * 状态（0：无效 1：有效）
     */
    @Column(name="join_status")
    private Integer joinStatus;

    /**
     * 创建时间
     */
    @Column(name="create_time")
    private Date createTime;

    /**
     * 调用微信支付API的机器IP
     */
    @Column(name="spbill_create_ip")
    private String spbillCreateIp;

    /**
       * 通知回调应用地址
     */
    @Column(name="call_back_url")
    private String callBackUrl;
    
    private static final long serialVersionUID = 1L;

    public Integer getPayJoinId() {
        return payJoinId;
    }

    public void setPayJoinId(Integer payJoinId) {
        this.payJoinId = payJoinId;
    }

    public Integer getWxAppId() {
        return wxAppId;
    }

    public void setWxAppId(Integer wxAppId) {
        this.wxAppId = wxAppId;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getJoinName() {
        return joinName;
    }

    public void setJoinName(String joinName) {
        this.joinName = joinName;
    }

    public Integer getJoinStatus() {
        return joinStatus;
    }

    public void setJoinStatus(Integer joinStatus) {
        this.joinStatus = joinStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSpbillCreateIp() {
        return spbillCreateIp;
    }

    public void setSpbillCreateIp(String spbillCreateIp) {
        this.spbillCreateIp = spbillCreateIp;
    }

	public String getCallBackUrl() {
		return callBackUrl;
	}

	public void setCallBackUrl(String callBackUrl) {
		this.callBackUrl = callBackUrl;
	}
}